package com.xhwl.logistics.converter.mapstruct.logistics;


import com.xhwl.logistics.entity.logistics.CrenelGroup;
import com.xhwl.logistics.vo.logistics.CrenelGroupVO;
import org.mapstruct.IterableMapping;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;


@Mapper(componentModel = "spring")
public interface CrenelGroupConverter {
    CrenelGroupConverter INSTANCE = Mappers.getMapper(CrenelGroupConverter.class);

    CrenelGroup toPoConvert(CrenelGroupVO source);

    CrenelGroupVO toVoConvert(CrenelGroup source);

    @IterableMapping(elementTargetType = CrenelGroup.class)
    List<CrenelGroup> toPoConvertList(List<CrenelGroupVO> source);

    @IterableMapping(elementTargetType = CrenelGroupVO.class)
    List<CrenelGroupVO> toVoConvertList(List<CrenelGroup> source);
}
